clear
use "G:\My Drive\APSA_Rule_of_law\Data\Merging Data\data_0920.dta"

tab date_policy if MaskPolicies==.

tab date if grocery_and_pharmacy_percent_cha==.

encode country, generate(ctry)
generate Date2 = date(date,"YMD")
format %td Date2

tsset ctry Date2, daily

gen polity_cat="autocracy" if panback<=-6
replace polity_cat="anocracy" if panback>=-5&panback<=5
replace polity_cat="democracy" if panback>=6
replace polity_cat="" if panback==.
gen female_leader=0
replace female_leader=1 if v2exfemhos==1
replace female_leader=1 if v2exfemhog==1

gen medical_cap=doctors_perth+nurses_perth+hospbedsperth
gen coercive_cap=policecap+milpercap
 
sum BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing Capacity infcap_pca ape1 medical_cap govhealthexp_pcGDP v2x_pubcorr coercive_cap transit_stations_percent_change_ workplaces_percent_change_from_b residential_percent_change_from_ pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader cases deaths recoveries



gen ldeaths=log(deaths)
gen lrecoveries=log(recoveries)
gen lcases=log(cases)


collapse (mean) Capacity coercive_cap infcap_pca govhealthexp_pcGDP BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP polity2 ape1 panback female_leader medical_cap v2x_pubcorr gini_disp (sum) lcases ldeaths lrecoveries , by(country)

label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"
label var panback "Pandemic backsliding"
label var Capacity "State capacity"
label var infcap_pca "Information Capacity"
label var ape1 "Political Extraction Capacity"
label var medical_cap "Health Capacity"
label var govhealthexp_pcGDP "Gov Health Exp (\% GDP)"
label var v2x_pubcorr "Bureaucratic Corruption"
label var coercive_cap "Coercive capacity"
label var pop_density "Population density"
label var GDPpcap "GDP per capita"
label var FDI_pcGDP "FDI (\% GDP)"
label var Trade_pcGDP "Trade (\% GDP)"
label var panback "Polity score"
label var female_leader "Female leader"
label var gini_disp "GINI"
label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"
label var polity2 "Polity2"

reg lcases Capacity BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback panback female_leader
gen e = e(sample)
drop if e == 0

	
reg lcases c.Capacity##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m1


reg lcases c.coercive_cap##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m3

reg lcases c.infcap_pca##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback panback female_leader , ro 
eststo m4


reg lcases c.govhealthexp_pcGDP##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m5

esttab m1 m3 m4 m5 using "cases_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


	
reg ldeaths c.Capacity##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m1


reg ldeaths c.coercive_cap##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m3

reg ldeaths c.infcap_pca##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m4

reg ldeaths c.govhealthexp_pcGDP##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m5

esttab m1 m3 m4 m5 using "deaths_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg BusinessRestrictions c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg BusinessRestrictions c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg BusinessRestrictions c.infcap_pca##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4


reg BusinessRestrictions c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "business_restrict_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg HealthMonitoring c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg HealthMonitoring c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthMonitoring c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthMonitoring c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_monitor_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 



reg HealthResources c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg HealthResources c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthResources c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthResources c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_resources_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	
	 
*MaskPolicies 
reg MaskPolicies c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg MaskPolicies c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg MaskPolicies c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg MaskPolicies c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "mask_policies_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	 
	 
*SchoolRestrictions 
reg SchoolRestrictions c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SchoolRestrictions c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SchoolRestrictions c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SchoolRestrictions c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "school_restrictions_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	 
*SocialDistancing
reg SocialDistancing c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SocialDistancing c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SocialDistancing c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SocialDistancing c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "social_distancing_polity2.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	
	
clear 
use "G:\My Drive\APSA_Rule_of_law\Data\Merging Data\data_0921_CountryCross.dta"



gen polity_cat="autocracy" if panback<=-6
replace polity_cat="anocracy" if panback>=-5&panback<=5
replace polity_cat="democracy" if panback>=6
replace polity_cat="" if panback==.
gen female_leader=0
replace female_leader=1 if v2exfemhos==1
replace female_leader=1 if v2exfemhog==1

gen medical_cap=doctors_perth+nurses_perth+hospbedsperth
gen coercive_cap=policecap+milpercap
 
label var BusinessRestrictions "Business Restrictions"
label var HealthMonitoring "Health Monitoring"
label var HealthResources "Health Resources"
label var MaskPolicies "Mask Policies"
label var SchoolRestrictions "School Restrictions"
label var SocialDistancing "Social Distancing"
 
sum BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing Capacity infcap_pca ape1 medical_cap govhealthexp_pcGDP v2x_pubcorr coercive_cap transit_stations_percent_change_ workplaces_percent_change_from_b residential_percent_change_from_ pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader cases deaths recoveries

label var Capacity "State capacity"
label var infcap_pca "Information Capacity"
label var ape1 "Political Extraction Capacity"
label var medical_cap "Health Capacity"
label var govhealthexp_pcGDP "Gov Health Exp (\% GDP)"
label var v2x_pubcorr "Bureaucratic Corruption"
label var coercive_cap "Coercive capacity"
label var retail_and_recreation_percent_ch "Retail mobility"
label var grocery_and_pharmacy_percent_cha "Grocery mobility"
label var parks_percent_change_from_baseli "Park mobility"
label var transit_stations_percent_change_ "Transit mobility"
label var workplaces_percent_change_from_b "Workplace mobility"
label var residential_percent_change_from_ "Residential mobility"
label var pop_density "Population density"
label var GDPpcap "GDP per capita"
label var FDI_pcGDP "FDI (\% GDP)"
label var Trade_pcGDP "Trade (\% GDP)"
label var panback "Polity score"
label var female_leader "Female leader"
label var gini_disp "GINI"
label var cases "COVID cases"
label var deaths "COVID deaths"
label var recoveries "COVID recoveries"
label var polity2 "Polity2"

gen ldeaths=log(deaths)
gen lrecoveries=log(recoveries)
gen lcases=log(cases)
label var lcases "COVID cases"
label var ldeaths "COVID deaths"
label var lrecoveries "COVID recoveries"
label var panback "Pandemic backsliding"


	
reg lcases c.Capacity##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m1


reg lcases c.coercive_cap##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m3

reg lcases c.infcap_pca##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback panback female_leader , ro 
eststo m4


reg lcases c.govhealthexp_pcGDP##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m5

esttab m1 m3 m4 m5 using "cases_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
 star(* 0.10 ** 0.05 *** .01) 


	
reg ldeaths c.Capacity##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m1


reg ldeaths c.coercive_cap##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader, ro 
eststo m3

reg ldeaths c.infcap_pca##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m4

reg ldeaths c.govhealthexp_pcGDP##c.polity2 BusinessRestrictions HealthMonitoring HealthResources MaskPolicies SchoolRestrictions SocialDistancing  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader , ro 
eststo m5

esttab m1 m3 m4 m5 using "deaths_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg BusinessRestrictions c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg BusinessRestrictions c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg BusinessRestrictions c.infcap_pca##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4


reg BusinessRestrictions c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "business_restrict_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 


reg HealthMonitoring c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1


reg HealthMonitoring c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthMonitoring c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthMonitoring c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_monitor_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)" "(7)" "(8)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 



reg HealthResources c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg HealthResources c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg HealthResources c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg HealthResources c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "health_resources_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	
	 
*MaskPolicies 
reg MaskPolicies c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg MaskPolicies c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg MaskPolicies c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg MaskPolicies c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "mask_policies_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 	
	 
	 
*SchoolRestrictions 
reg SchoolRestrictions c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SchoolRestrictions c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SchoolRestrictions c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SchoolRestrictions c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "school_restrictions_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
	 
*SocialDistancing
reg SocialDistancing c.Capacity##c.polity2 pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m1

reg SocialDistancing c.coercive_cap##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m3

reg SocialDistancing c.infcap_pca##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m4

reg SocialDistancing c.govhealthexp_pcGDP##c.polity2  pop_density GDPpcap FDI_pcGDP Trade_pcGDP panback female_leader gini_disp lcases ldeaths , ro 
eststo m5

esttab m1 m3 m4 m5 using "social_distancing_polity2_early.tex", label se b(3) ///
eqlabels(none) nodiscrete booktabs replace ///
order (Capacity coercive_cap infcap_pca govhealthexp_pcGDP) ///
	mtitles("(1)" "(2)" "(3)" "(4)" "(5)" "(6)") nonumber ///
	nonotes ///
  star(* 0.10 ** 0.05 *** .01) 
		